package com.hospital.doctor.service;

import com.hospital.doctor.mapper.RoundMapper;
import com.hospital.doctor.pojo.Round;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoundServiceImpl implements RoundService {

    @Autowired
    private RoundMapper roundMapper;

    @Override
    public List<Round> selectAllByPid(int pId) {
        return roundMapper.selectAllByPid(pId);
    }

    @Override
    public int insertRound(Round round) {

        return roundMapper.insertRound(round);
    }
}
